# -*- coding:utf-8 -*-

from django.test import TestCase

# Create your tests here.

from apitest.views import home, login
from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import resolve
from django.urls import reverse
from django.http import HttpRequest


# class titlePageTest(TestCase):
#    def test_loginpage_returns_title_html(self):
#        request = HttpRequest()
#        response = login(request)
#        self.assertIn(b'<title>AutotestPlat</title>', response.content)

class contentTest(TestCase):
    def test_content_url_resolves_to_view(self):
        request = HttpRequest()
        response = login(request)
        self.assertIn(b'root123456!@#$%^7', response.content)
